.class public Lrexsee/core/browser/clazz/JavascriptInterfaceList;
.super Ljava/lang/Object;
.source "JavascriptInterfaceList.java"


# instance fields
.field private final creations:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Lrexsee/core/browser/clazz/JavascriptInterface;",
            ">;"
        }
    .end annotation
.end field

.field private final list:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lrexsee/core/browser/clazz/JavascriptInterface;",
            ">;"
        }
    .end annotation
.end field

.field public final mBrowser:Lrexsee/core/browser/Browser;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 14
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 15
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    .line 16
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    .line 17
    iput-object p1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    .line 18
    return-void
.end method


# virtual methods
.method public add(Lrexsee/core/browser/clazz/JavascriptInterface;)V
    .locals 2
    .param p1, "javascriptInterface"    # Lrexsee/core/browser/clazz/JavascriptInterface;

    .prologue
    .line 38
    iget-object v0, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    .line 39
    iget-object v0, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 40
    iget-object v0, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-interface {p1}, Lrexsee/core/browser/clazz/JavascriptInterface;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, p1, v1}, Lrexsee/core/browser/Browser;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 41
    return-void
.end method

.method public contains(Ljava/lang/String;)Z
    .locals 2
    .param p1, "interfaceName"    # Ljava/lang/String;

    .prologue
    .line 57
    invoke-virtual {p0, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v0

    .line 58
    .local v0, "face":Lrexsee/core/browser/clazz/JavascriptInterface;
    if-nez v0, :cond_0

    const/4 v1, 0x0

    :goto_0
    return v1

    :cond_0
    const/4 v1, 0x1

    goto :goto_0
.end method

.method public create(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 6
    .param p1, "interfaceName"    # Ljava/lang/String;
    .param p2, "shortcut"    # Ljava/lang/String;

    .prologue
    const/4 v5, 0x0

    .line 116
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v2, p2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 117
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v3

    const-string v4, "Duplicated shortcut name."

    invoke-virtual {v2, v3, v4}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v2, v5

    .line 138
    :goto_0
    return v2

    .line 120
    :cond_0
    invoke-virtual {p0, p2}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->contains(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 121
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v3

    const-string v4, "Shortcut is duplicated in original interface list."

    invoke-virtual {v2, v3, v4}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v2, v5

    .line 122
    goto :goto_0

    .line 124
    :cond_1
    invoke-virtual {p0, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v0

    .line 125
    .local v0, "face":Lrexsee/core/browser/clazz/JavascriptInterface;
    if-nez v0, :cond_2

    .line 126
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v3

    const-string v4, "Interface does not exist."

    invoke-virtual {v2, v3, v4}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v2, v5

    .line 127
    goto :goto_0

    .line 129
    :cond_2
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-interface {v0, v2}, Lrexsee/core/browser/clazz/JavascriptInterface;->getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v1

    .line 130
    .local v1, "newFace":Lrexsee/core/browser/clazz/JavascriptInterface;
    invoke-virtual {v1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 131
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v2, v0, p2}, Lrexsee/core/browser/Browser;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 132
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v2, p2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 133
    const/4 v1, 0x0

    .line 138
    :goto_1
    const/4 v2, 0x1

    goto :goto_0

    .line 135
    :cond_3
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v2, v1, p2}, Lrexsee/core/browser/Browser;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 136
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v2, p2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1
.end method

.method public createFromParent(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 6
    .param p1, "interfaceName"    # Ljava/lang/String;
    .param p2, "shortcut"    # Ljava/lang/String;

    .prologue
    const/4 v5, 0x0

    .line 71
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v2, p2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 72
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v3

    const-string v4, "Duplicated shortcut name."

    invoke-virtual {v2, v3, v4}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v2, v5

    .line 91
    :goto_0
    return v2

    .line 75
    :cond_0
    invoke-virtual {p0, p2}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->contains(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 76
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v3

    const-string v4, "Shortcut is duplicated in original interface list."

    invoke-virtual {v2, v3, v4}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v2, v5

    .line 77
    goto :goto_0

    .line 79
    :cond_1
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    if-nez v2, :cond_2

    .line 80
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v3

    const-string v4, "Parent browser is not available."

    invoke-virtual {v2, v3, v4}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v2, v5

    .line 81
    goto :goto_0

    .line 83
    :cond_2
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v2, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v0

    .line 84
    .local v0, "face":Lrexsee/core/browser/clazz/JavascriptInterface;
    if-nez v0, :cond_3

    .line 85
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v3

    const-string v4, "Interface does not exist in parent."

    invoke-virtual {v2, v3, v4}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v2, v5

    .line 86
    goto :goto_0

    .line 88
    :cond_3
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-interface {v0, v2}, Lrexsee/core/browser/clazz/JavascriptInterface;->getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v1

    .line 89
    .local v1, "newFace":Lrexsee/core/browser/clazz/JavascriptInterface;
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v2, v1, p2}, Lrexsee/core/browser/Browser;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 90
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v2, p2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 91
    const/4 v2, 0x1

    goto :goto_0
.end method

.method public createShortcutFromParent(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 5
    .param p1, "interfaceName"    # Ljava/lang/String;
    .param p2, "shortcut"    # Ljava/lang/String;

    .prologue
    const/4 v4, 0x0

    .line 94
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v1, p2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 95
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Duplicated shortcut name."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v1, v4

    .line 113
    :goto_0
    return v1

    .line 98
    :cond_0
    invoke-virtual {p0, p2}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->contains(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 99
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Shortcut is duplicated in original interface list."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v1, v4

    .line 100
    goto :goto_0

    .line 102
    :cond_1
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    if-nez v1, :cond_2

    .line 103
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Parent browser is not available."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v1, v4

    .line 104
    goto :goto_0

    .line 106
    :cond_2
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v1, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v0

    .line 107
    .local v0, "face":Lrexsee/core/browser/clazz/JavascriptInterface;
    if-nez v0, :cond_3

    .line 108
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Interface does not exist in parent."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v1, v4

    .line 109
    goto :goto_0

    .line 111
    :cond_3
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v1, v0, p2}, Lrexsee/core/browser/Browser;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 112
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v1, p2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 113
    const/4 v1, 0x1

    goto :goto_0
.end method

.method public get()Ljava/lang/String;
    .locals 5

    .prologue
    const-string v4, "\""

    .line 23
    const-string v1, ""

    .line 24
    .local v1, "rtn":Ljava/lang/String;
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lt v0, v2, :cond_0

    .line 28
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "["

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "]"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    return-object v2

    .line 25
    :cond_0
    if-lez v0, :cond_1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 26
    :cond_1
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "\""

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lrexsee/core/browser/clazz/JavascriptInterface;

    invoke-interface {v2}, Lrexsee/core/browser/clazz/JavascriptInterface;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\""

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 24
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 3
    .param p1, "interfaceName"    # Ljava/lang/String;

    .prologue
    .line 31
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lt v0, v2, :cond_0

    .line 35
    const/4 v2, 0x0

    :goto_1
    return-object v2

    .line 32
    :cond_0
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lrexsee/core/browser/clazz/JavascriptInterface;

    .line 33
    .local v1, "tmp":Lrexsee/core/browser/clazz/JavascriptInterface;
    invoke-interface {v1}, Lrexsee/core/browser/clazz/JavascriptInterface;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    move-object v2, v1

    goto :goto_1

    .line 31
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public getCreations()Ljava/lang/String;
    .locals 7

    .prologue
    const-string v6, "\""

    .line 144
    iget-object v4, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v4}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v2

    .line 145
    .local v2, "keys":Ljava/util/Set;, "Ljava/util/Set<Ljava/lang/String;>;"
    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .line 146
    .local v0, "iterator":Ljava/util/Iterator;, "Ljava/util/Iterator<Ljava/lang/String;>;"
    const-string v3, ""

    .line 147
    .local v3, "rtn":Ljava/lang/String;
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-nez v4, :cond_0

    .line 152
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "{"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "}"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    return-object v4

    .line 148
    :cond_0
    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_1

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, ","

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 149
    :cond_1
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 150
    .local v1, "key":Ljava/lang/String;
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "\""

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\":\""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v4, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v4, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lrexsee/core/browser/clazz/JavascriptInterface;

    invoke-interface {v4}, Lrexsee/core/browser/clazz/JavascriptInterface;->getInterfaceName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\""

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_0
.end method

.method public getList()Ljava/util/ArrayList;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList",
            "<",
            "Lrexsee/core/browser/clazz/JavascriptInterface;",
            ">;"
        }
    .end annotation

    .prologue
    .line 20
    iget-object v0, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    return-object v0
.end method

.method public inherit()V
    .locals 5

    .prologue
    .line 49
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    if-nez v2, :cond_0

    .line 55
    :goto_0
    return-void

    .line 50
    :cond_0
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    iget-object v2, v2, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lt v0, v2, :cond_1

    .line 54
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    iget-object v4, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v4, v4, Lrexsee/core/browser/Browser;->function:Lrexsee/core/browser/RexseeBrowser;

    invoke-virtual {v4}, Lrexsee/core/browser/RexseeBrowser;->getInterfaceName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v3

    iget-object v4, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v4, v4, Lrexsee/core/browser/Browser;->function:Lrexsee/core/browser/RexseeBrowser;

    invoke-virtual {v4}, Lrexsee/core/browser/RexseeBrowser;->getParentInterfaceName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lrexsee/core/browser/Browser;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    goto :goto_0

    .line 51
    :cond_1
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    iget-object v2, v2, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lrexsee/core/browser/clazz/JavascriptInterface;

    iget-object v3, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-interface {v2, v3}, Lrexsee/core/browser/clazz/JavascriptInterface;->getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v1

    .line 52
    .local v1, "tmp":Lrexsee/core/browser/clazz/JavascriptInterface;
    if-eqz v1, :cond_2

    invoke-virtual {p0, v1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->add(Lrexsee/core/browser/clazz/JavascriptInterface;)V

    .line 50
    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_1
.end method

.method public isInherit(Ljava/lang/String;)Z
    .locals 4
    .param p1, "interfaceName"    # Ljava/lang/String;

    .prologue
    const/4 v3, 0x0

    .line 64
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    if-nez v2, :cond_0

    move v2, v3

    .line 67
    :goto_0
    return v2

    .line 65
    :cond_0
    invoke-virtual {p0, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v0

    .line 66
    .local v0, "me":Lrexsee/core/browser/clazz/JavascriptInterface;
    iget-object v2, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->parentBrowser:Lrexsee/core/browser/Browser;

    iget-object v2, v2, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    invoke-virtual {v2, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v1

    .line 67
    .local v1, "parent":Lrexsee/core/browser/clazz/JavascriptInterface;
    if-eqz v0, :cond_1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    const/4 v2, 0x1

    goto :goto_0

    :cond_1
    move v2, v3

    goto :goto_0
.end method

.method public remove(Ljava/lang/String;)V
    .locals 3
    .param p1, "interfaceName"    # Ljava/lang/String;

    .prologue
    .line 43
    invoke-virtual {p0, p1}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v0

    .line 44
    .local v0, "face":Lrexsee/core/browser/clazz/JavascriptInterface;
    if-nez v0, :cond_0

    .line 47
    :goto_0
    return-void

    .line 45
    :cond_0
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->mBrowser:Lrexsee/core/browser/Browser;

    const/4 v2, 0x0

    invoke-virtual {v1, v2, p1}, Lrexsee/core/browser/Browser;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 46
    iget-object v1, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    goto :goto_0
.end method

.method public size()I
    .locals 1

    .prologue
    .line 61
    iget-object v0, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->list:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public sizeOfCreations()I
    .locals 1

    .prologue
    .line 141
    iget-object v0, p0, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->creations:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->size()I

    move-result v0

    return v0
.end method
